package com.qf.hystrix02.controller;

import com.qf.hystrix02.fegin.BookService;
import com.qf.service.Book;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Auther: Song
 * @Date: 2022-03-19 17:28
 */
@RestController
public class HelloController {
    @Autowired
    BookService bookService;

    @GetMapping("/test01")
    public Book getBookById() {
        return bookService.getBookById(99);
    }
}
